package com.ruoyi.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.mapper.ElderlyinfoMapper;
import com.ruoyi.domain.Elderlyinfo;
import com.ruoyi.service.IElderlyinfoService;

/**
 * ElderlyinfoService业务层处理
 * 
 * @author 王皎宇
 * @date 2025-01-10
 */
@Service
public class ElderlyinfoServiceImpl implements IElderlyinfoService 
{
    @Autowired
    private ElderlyinfoMapper elderlyinfoMapper;

    /**
     * 查询Elderlyinfo
     * 
     * @param elderlyId Elderlyinfo主键
     * @return Elderlyinfo
     */
    @Override
    public Elderlyinfo selectElderlyinfoByElderlyId(Long elderlyId)
    {
        return elderlyinfoMapper.selectElderlyinfoByElderlyId(elderlyId);
    }

    /**
     * 查询Elderlyinfo列表
     * 
     * @param elderlyinfo Elderlyinfo
     * @return Elderlyinfo
     */
    @Override
    public List<Elderlyinfo> selectElderlyinfoList(Elderlyinfo elderlyinfo)
    {
        return elderlyinfoMapper.selectElderlyinfoList(elderlyinfo);
    }

    /**
     * 新增Elderlyinfo
     * 
     * @param elderlyinfo Elderlyinfo
     * @return 结果
     */
    @Override
    public int insertElderlyinfo(Elderlyinfo elderlyinfo)
    {
        return elderlyinfoMapper.insertElderlyinfo(elderlyinfo);
    }

    /**
     * 修改Elderlyinfo
     * 
     * @param elderlyinfo Elderlyinfo
     * @return 结果
     */
    @Override
    public int updateElderlyinfo(Elderlyinfo elderlyinfo)
    {
        return elderlyinfoMapper.updateElderlyinfo(elderlyinfo);
    }

    /**
     * 批量删除Elderlyinfo
     * 
     * @param elderlyIds 需要删除的Elderlyinfo主键
     * @return 结果
     */
    @Override
    public int deleteElderlyinfoByElderlyIds(Long[] elderlyIds)
    {
        return elderlyinfoMapper.deleteElderlyinfoByElderlyIds(elderlyIds);
    }

    /**
     * 删除Elderlyinfo信息
     * 
     * @param elderlyId Elderlyinfo主键
     * @return 结果
     */
    @Override
    public int deleteElderlyinfoByElderlyId(Long elderlyId)
    {
        return elderlyinfoMapper.deleteElderlyinfoByElderlyId(elderlyId);
    }
}
